﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    public static partial class TimeSpanExtensions
    {
        /// <summary>
        /// Format a DateTime as a string that contains no characters
        //// that are banned from filenames, such as ':'.
        /// </summary>
        /// <returns>YYYY-MM-DD_HH.MM.SS</returns>
        public static string ToFilenameString(this DateTime dt)
        {
            return dt.ToString("yyy-MM-dd_HH.mm.ss");
        }
    }
}
